home *** CD-ROM | disk | FTP | other *** search
- CHOP50 program documentation
-
- OVERVIEW
-
- CHOP50 chops a file of any size into roughly 50K chunks. It tries to break
- each chunk at a carriage-return, if reasonable. Reasonable means that there
- is a carriage-return within 256 bytes of where it decided to break the file.
- The output files consist of the input file name, followed by an extension
- of .001, .002, etc.
-
- HISTORY
-
- There exists another program out there called "chop". It does a similar
- job, but has a number of annoyances:
- 1. If you use it on a floppy disk, it sounds like a washing machine in
- action. The head is in constant motion doing seeks from the input
- file to the output file. The same thing happens on hard disk,
- it's just a little less obvious.
- 2. I don't use the program myself, but as I understand, both the file
- to be chopped and the result must be on the same disk drive. Not
- only does that GUARANTEE a lot of seeks, but it limits the size
- of the file.
- 3. The author kept the source code secret. This means that it's the
- closest thing to impossible to change.
- Because of these problems, I decided to write a CHOP program that would
- run as fast as possible. I wrote it in assembly. It reads in a 50K block,
- all at once. It writes a 50K block, all at once. Therefore a seek takes
- place only twice per 50K (ignoring track-to-track seeks necessary for
- sequential read). It's been reported to me that the speed of CHOP50 is
- drastically better than CHOP.
- I also added the capability of chopping a file to a different destination,
- whether a different unit, or a different subdirectory.
-
- USAGE
-
- To use, enter the command:
- CHOP50 source [dest]
- Examples:
- CHOP50 TRASH.DOC TRASH.DOC is chopped into TRASH.001,
- etc. on the default drive and subdir
- CHOP50 B:TRASH.DOC same as above, except the file is READ
- from the B: drive
- CHOP50 C:\JUNK\TRASH.DOC same as above, except the file is READ
- from the JUNK subdir of the C: drive
- CHOP50 C:\JUNK\TRASH.DOC B: TRASH.DOC is READ from the JUNK subdir
- of the C: drive, and output is WRITTEN
- to the B: drive as TRASH.001, etc.
- CHOP50 C:\JUNK\TRASH.DOC B:GOOD TRASH.DOC is READ from the JUNK
- subdir of the C: drive, and output is
- WRITTEN to the B: drive as GOOD.001, etc.
-
- COPYRIGHT and copying
-
- This program is copyright 1987 by Ronald Tansky. The copyright is
- primarily to keep this program from being sold. Feel free to use it and
- pass it around at will. The only restrictions are that:
- This program may not be sold, either alone or along with any other
- program offered for money, regardless of amount.
- If this program is distributed for free, the source and documentation
- must be included.
-
- DISCLAIMER SECTION
-
- You got this program for free, and I'm not asking for any donations for
- using it. I believe it works as documented. You're on your own. You have both
- the source and the load module. Check it out. If your machine melts when you
- run this program, I'm not responsible.